package demo.controller;

import demo.enity.User;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController2 {

    @Resource
    User user;

    public void printUser2() {
        System.out.println("print2: " + user);
    }
}
